package a.j.b;

import a.e.a.s;
import a.e.b.a.y;
import a.e.b.b.n;
import a.e.b.c.b;
import a.e.b.c.eb;
import a.e.b.c.v;
import a.j.g;
import a.j.ld;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

import java.awt.*;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public abstract interface l
{
  public abstract Stroke a(ld paramld);
  
  public abstract Color b(ld paramld);
  
  public abstract Color c(ld paramld);
  
  public abstract Stroke d(ld paramld);
  
  public abstract Color e(ld paramld);
  
  public abstract Color f(ld paramld);
  
  public static class b_
    implements n
  {
    public static boolean a;
    
    public void a(a.e.b.b.cb paramcb)
    {
      int k = f.Wb;
      Node localNode = paramcb.e();
      if (((k != 0) || ("SimpleStyle".equals(localNode.getLocalName()))) && (((k == 0) && (("http://www.yworks.com/xml/graphml".equals(localNode.getNamespaceURI())) && (k != 0))) || (localNode.getNodeType() == 1)))
      {
        Element localElement = (Element)localNode;
        a.j.c localc1 = null;
        String str1 = localElement.getAttribute("borderLineType");
        String str2 = localElement.getAttribute("borderLineWidth");
        if (((k != 0) || (!"".equals(str1))) && ((k != 0) || (!"".equals(str2))))
        {
          int i = (int)Double.parseDouble(str2);
          byte b1 = s.h(str1);
          localc1 = a.j.c.a(i, b1);
        }
        Color localColor1 = null;
        String str3 = localElement.getAttribute("borderLineColor");
        if ((k != 0) || (!"".equals(str3))) {
          localColor1 = y.a(str3);
        }
        Color localColor2 = null;
        String str4 = localElement.getAttribute("borderFillColor");
        if ((k != 0) || (!"".equals(str4))) {
          localColor2 = y.a(str4);
        }
        a.j.c localc2 = null;
        String str5 = localElement.getAttribute("lineType");
        String str6 = localElement.getAttribute("lineWidth");
        if (((k != 0) || (!"".equals(str5))) && ((k != 0) || (!"".equals(str6))))
        {
          int j = (int)Double.parseDouble(str6);
          byte b2 = s.h(str5);
          localc2 = a.j.c.a(j, b2);
        }
        Color localColor3 = null;
        String str7 = localElement.getAttribute("lineColor");
        if ((k != 0) || (!"".equals(str7))) {
          localColor3 = y.a(str7);
        }
        Color localColor4 = null;
        String str8 = localElement.getAttribute("fillColor");
        if ((k != 0) || (!"".equals(str8))) {
          localColor4 = y.a(str8);
        }
        paramcb.a(new l.a_(localc1, localColor1, localColor2, localc2, localColor3, localColor4));
      }
    }
  }
  
  public static class c_
    implements v
  {
    private static final String a = "SimpleStyle";
    public static boolean b;
    
    public void a(eb parameb)
      throws b
    {
      int i = f.Wb;
      Object localObject = parameb.a();
      if ((i != 0) || ((localObject instanceof l.a_)))
      {
        l.a_ locala_ = (l.a_)localObject;
        a.e.b.c.cb localcb = parameb.e();
        a.c.e locale = (a.c.e)parameb.d().b();
        g localg = (g)parameb.d().e();
        ld localld = localg.w(locale);
        localcb.a("SimpleStyle", "http://www.yworks.com/xml/graphml");
        a.j.c localc1 = (a.j.c)locala_.a(localld);
        if ((i != 0) || (localc1 != null))
        {
          str1 = a.e.a.e.b(localc1.a());
          localcb.c("borderLineType", str1);
          localcb.a("borderLineWidth", localc1.getLineWidth());
        }
        String str1 = y.a(locala_.b(localld));
        if (i == 0) {
          if (str1 != null) {
            localcb.c("borderLineColor", str1);
          }
        }
        String str2 = y.a(locala_.c(localld));
        if (str2 != null) {
          localcb.c("borderFillColor", str2);
        }
        a.j.c localc2 = (a.j.c)locala_.d(localld);
        if ((i != 0) || (localc2 != null))
        {
          str3 = a.e.a.e.b(localc2.a());
          localcb.c("lineType", str3);
          localcb.a("lineWidth", localc2.getLineWidth());
        }
        String str3 = y.a(locala_.e(localld));
        if (i == 0) {
          if (str3 != null) {
            localcb.c("lineColor", str3);
          }
        }
        String str4 = y.a(locala_.f(localld));
        if (i == 0)
        {
          if (str4 != null) {
            localcb.c("fillColor", str4);
          }
          localcb.b();
        }
        parameb.a(true);
      }
    }
  }
  
  public static class a_
    implements Externalizable, l
  {
    private a.j.c a;
    private Color b;
    private Color c;
    private a.j.c d;
    private Color f;
    private Color h;
    public static boolean i;
    
    public a_()
    {
      this(null, null, null, null, null, null);
    }
    
    public a_(a.j.c paramc, Color paramColor1, Color paramColor2)
    {
      this(null, null, null, paramc, paramColor1, paramColor2);
    }
    
    public a_(a.j.c paramc1, Color paramColor1, Color paramColor2, a.j.c paramc2, Color paramColor3, Color paramColor4)
    {
      this.a = paramc1;
      this.b = paramColor1;
      this.c = paramColor2;
      this.d = paramc2;
      this.f = paramColor3;
      this.h = paramColor4;
    }
    
    public Stroke a(ld paramld)
    {
      return this.a;
    }
    
    public Color b(ld paramld)
    {
      return this.b;
    }
    
    public Color c(ld paramld)
    {
      return this.c;
    }
    
    public Stroke d(ld paramld)
    {
      return this.d;
    }
    
    public Color e(ld paramld)
    {
      return this.f;
    }
    
    public Color f(ld paramld)
    {
      return this.h;
    }
    
    public void readExternal(ObjectInput paramObjectInput)
      throws IOException, ClassNotFoundException
    {
      if (f.Wb == 0) {}
      switch (paramObjectInput.readByte())
      {
      case 0: 
        this.a = a.j.c.a(paramObjectInput);
        this.b = ((Color)paramObjectInput.readObject());
        this.c = ((Color)paramObjectInput.readObject());
        this.d = a.j.c.a(paramObjectInput);
        this.f = ((Color)paramObjectInput.readObject());
        this.h = ((Color)paramObjectInput.readObject());
        if (!f.Vb) {
          break;
        }
      default: 
        throw new a.e.c();
      }
    }
    
    public void writeExternal(ObjectOutput paramObjectOutput)
      throws IOException
    {
      paramObjectOutput.writeByte(0);
      a.j.c.a(paramObjectOutput, this.a);
      paramObjectOutput.writeObject(this.b);
      paramObjectOutput.writeObject(this.c);
      a.j.c.a(paramObjectOutput, this.d);
      paramObjectOutput.writeObject(this.f);
      paramObjectOutput.writeObject(this.h);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.b.l

 * JD-Core Version:    0.7.0.1

 */